package samples.d2.shapes 
{
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	import samples.BaseSample;
	import shapes.shapes2D.distribution.Grid;
	import shapes.shapes2D.Dot;
	import shapes.shapes2D.Square;
	
	/**
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class Square1 extends BaseSample
	{
		private var s:Square;
		
		public function Square1() 
		{
			
			
			var points:Vector.<Point> = new Grid( new Rectangle( 100, 100, sw - 200, sh - 200 ), 15, 10 ).distribute();
			
			for each( var p:Point in points )
			{
				
				for ( var i:int = 0; i < 5; i++ )
				{
					graphics.lineStyle( Math.random() * 3, color );
					
					s = new Square( p.x, p.y, 10 + Math.random() * 40 );
					s.draw( graphics );
					
				}
				
			}
		}
		
	}

}